Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose NetcodeSocket #11

Merged
merged 2 commits into from
Aug 16, 2024
Merged

expose NetcodeSocket #11

merged 2 commits into from
Aug 16, 2024

Conversation

benjamin-kirkbride
Copy link
Contributor

@benjamin-kirkbride benjamin-kirkbride commented Aug 14, 2024

Resolves #10

Copy link
Owner

@benny-n benny-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!
Now that we expose NetcodeSocket, let's make sure it's hard to misuse by encapsulating the inner UdpSocket:

- pub struct NetcodeSocket(pub UdpSocket);
+ pub struct NetcodeSocket(UdpSocket);

Other than that, LGTM.
I'll make sure to include this in v1.4.0!

@benjamin-kirkbride
Copy link
Contributor Author

I actually made a mistake with it I think, sorry I don't really know rust. I exposed it from the client module, not the socket module

@benjamin-kirkbride
Copy link
Contributor Author

but I fixed that on the pr?

@benjamin-kirkbride
Copy link
Contributor Author

just make sure you test it before you merge 😅

@benny-n
Copy link
Owner

benny-n commented Aug 16, 2024

@benjamin-kirkbride No worries, that's what CI is for 😅
I am also okay with merging it as is and making the change on my end.

@benjamin-kirkbride
Copy link
Contributor Author

benjamin-kirkbride commented Aug 16, 2024 via email

@benny-n benny-n merged commit 85f32b4 into benny-n:main Aug 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose NetcodeSocket
2 participants